package com.heimali.happyreader.model;

import android.text.TextUtils;

public class Article extends Error {
	public int id;
	public String title;
	public String content;
	public String sourceUrl;

	public Article(int errno, String errmsg) {
		super(errno, errmsg);
	}

	public Article(int id, String sourceUrl, String title, String content) {
		super();
		this.id = id;
		this.sourceUrl = TextUtils.isEmpty(sourceUrl) ? "" : sourceUrl;
		this.title = TextUtils.isEmpty(title) ? "" : title;
		this.content = TextUtils.isEmpty(content) ? "" : content;
	}
}
